# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-texttable
pkgver=1.6.2
pkgrel=1
pkgdesc='Generate a formatted text table using ASCII characters.'
arch=('any')
url="https://pypi.python.org/pypi/texttable/"
license=('LGPL')
depends=('python2')
optdepends=('python2-cjkwrap: for better CJK support')
makedepends=('python2-cjkwrap' 'python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/texttable-1.6.2.tar.gz")
sha512sums=('daf8c10b52e8c0472da129ad905e60ff6195a7f58e5b278f6eaad2b622f527ed8ac6d747aa90cdcb8e40c81150c88da436cb8616e259662a7d48a22de0a1ee50')

build() {
  cd "texttable-$pkgver"

  python2 setup.py build
}

package() {
  cd "texttable-$pkgver"

  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
}

